package com.hezhiqin.lock;

import java.util.ArrayList;
import java.util.concurrent.locks.ReentrantLock;

/**
 * @program: homeWork
 * @description:
 * @author: hezhiqin
 * @create: 2020-01-02 22:17
 */
public class ZuSheDuiLie {

    private final int cout;

    private ReentrantLock reentrantLock;

    private Object []  list;

//    public ZuSheDuiLie(int cout) {
//        this.cout = cout;
//        list = new Object [cout];
//    }


    public ZuSheDuiLie(int cout, ReentrantLock reentrantLock) {
        this.cout = cout;
        this.reentrantLock = reentrantLock;
        list = new Object [cout];
    }

    public  Object take (int i){


        return list[i];
    }


}
